This chapter discusses the attributes of image compresor and decompressor (Codec) components and the functional interfaces these components must support. A Codec component is a code resource that provides image compression or decompression services for image data. Both the compressor and decompressor components are described.
For historical reasons, these components are sometimes referred to as Image Compressor components, rather than Codec components, as a generic term for both compressors and decompressors.
To make it easier for developers to create new decompressor components, Apple provides a Base Image Decompressor component. You can use this component to perform most of the services that are common to all decompressors, allowing you to focus on the tasks that are specific to your decompressor.
This chapter includes detailed information on adding new Codec components to QuickTime.
This material is generally of interest to developers who will be writing Codec components. Most applications developers will use the Image Compression Manager to interact with these components, and will only need to read the sections " About Image Compressor Components", " Using Image Compressor Components ," and " Using Image Compressor Components ."
About Image Compressor ComponentsInside Macintosh describes the general characteristics of an image compressor component, including its component type. Several functions that a compressor component must support are explained and discussed, including:
Inside Macintosh describes what the Image Compression Manager does that affects compressors. It also provides sample code that shows how the compressor components prepare for image compression, and how to compress an image or a horizontal band from an image. The following procedures are described in detail:
QuickTime 4 Reference describes the features added to the image compressor components as part of QuickTime 2.0, 2.5, and 3.0. The new features are:
QuickTime 4 Reference defines the new functions that codec component developers need to know about. These functions support new features of QuickTime.
Inside Macintosh defines the functions that are invoked by the Image Compression Manager in direct response to application functions:
These functions have been renamed:
Inside Macintosh defines the functions that are invoked by the Image Compression Manager but do not correspond to functions called by applications. These functions can be called at any time:
These functions have been renamed:
Inside Macintosh defines utility functions of the Image Compression Manager that components can call. These functions are primarily used to manipulate image description records. QuickTime 4 Reference adds two new functions to the list, which a component can use to communicate with the Image Compression Manager about the cursor, or to inform the manager that an asynchronous decompression is complete.
Inside Macintosh defines the result codes that are likely to be returned by image compressor component functions in the event of an error.
Data TypesInside Macintosh describes the data types your component will use to communicate with the Image Compression Manager. QuickTime 4 Reference adds two new structures to the list, and documents several new flags and parameters added to the existing structures.
You will need to read both the definition of the data structures in Inside Macintosh and the changes described in the Developer's Guide.
Inside Macintosh defines the flags used to describe image compressor capability and format.
About the Base Image DecompressorQuickTime 4 Reference describes the functions of your decompressor component that will be called by the base image compressor. Detailed information is provided about when these functions will be called, and code samples are given.
QuickTime 4 Reference defines the component type for image decompressors, the component subtype for the base image decompressor, and the selector flags used for component calls.
Base Image Decompressor Data TypesQuickTime 4 Reference defines the data structures used to communicate between your decompressor component and the base image decompressor.
Base Image Decompressor FunctionsQuickTime 4 Reference defines the functions that your decompressor component must include in order to use the base image decompressor.